// api/src/routes/recommendation.js
import express from "express";
import auth from "../middleware/auth";
import {
  getRecommendations,
  getSimilarRecommendations,
  onboardUser,
} from "../controllers/recommendation";

const router = express.Router();

// 获取个性化推荐
router.get("/recommendations", auth, getRecommendations);

// 获取相似资源推荐
router.get("/torrent/:infoHash/similar", auth, getSimilarRecommendations);

// 用户偏好设置/冷启动
router.post("/preferences", auth, onboardUser);

export default router;
